package com.test.prolenders.bean_prolenders.star_dialog_prolenders;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;


public class ActiveWindowConfig_prolenders {

    private static ActiveWindowConfig_prolenders instance;

    private ActiveWindowConfig_prolenders(){}

    public static ActiveWindowConfig_prolenders getInstance(){
        if (instance==null) instance = new ActiveWindowConfig_prolenders();
        return instance;
    }

    public static void parse(JSONObject jsonObject){
        instance = new Gson().fromJson(jsonObject.toString(), ActiveWindowConfig_prolenders.class);
        instance.switch1 = jsonObject.optString("switch");
    }

    private int num;
    private String content;
    private String switch1;

    public int getNum() {
        //tag2024
        return 6;

//        return num;
    }

    public String getContent() {
        if (TextUtils.isEmpty(content)) return "";
        return content;
    }

    public boolean isSwitch(){

        //tag2024
        return true;

//        if (TextUtils.isEmpty(switch1)) return false;
//        return switch1.equalsIgnoreCase("YES");
    }

}
